package com.dragon.graduation.project.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.generator.CommonBean;
import lombok.*;

import java.time.LocalDateTime;

/**
* <p>
* 题目表 实体类
* </p>
*
* @author dragon
* @since 2025-02-28 21:19:40
*/

@TableName("db_project")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
public class ProjectEntity extends CommonBean {
    /**
     * 发布教师ID
     */
    @TableField("teacher_id")
    private Integer teacherId;
    /**
     * 题目标题
     */
    @TableField("title")
    private String title;
    /**
     * 题目描述
     */
    @TableField("description")
    private String description;
    /**
     * 题目要求
     */
    @TableField("requirements")
    private String requirements;
    /**
     * 题目状态（是否可选）
     */
    @TableField("status")
    private Integer status;
    /**
     * 最大可选人数
     */
    @TableField("max_capacity")
    private Integer maxCapacity;
    /**
     * 当前已选人数
     */
    @TableField("current_selected")
    private Integer currentSelected;
    /**
     * 发布时间
     */
    @TableField("release_time")
    private LocalDateTime releaseTime;
}